package com.neuedu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Register {

    @TableId(type = IdType.INPUT)  //INPUT表示由程序生成主键值
    private String registerId;

    private String patientName;
    private String patientGender;

    @JsonFormat(pattern = "yyyy-MM-dd")   //前台发送的yyyy-MM-dd的字符串自动转换成日期型
    private Date registerDate;

    //private String registerDate;

    private Integer registerNoon;

    private Integer settleMode;
    private Integer feeMode;

    private Integer deptId;
    private Integer levelId;
    private Integer doctorId;

    private Integer registerAmount;
    private Date registerTime;
    private Integer status;

    private String speak;
    private String result;

    private Integer diseaseId;

}
